package com.ebraga.trackerclub.android.handler.service;

import com.ebraga.trackerclub.android.handler.core.LoginHandlerImpl;
import com.ebraga.trackerclub.android.manager.api.LoginManager;
import com.ebraga.trackerclub.android.manager.service.LoginServiceManager;
import com.ebraga.trackerclub.android.util.api.AndroidContext;

public class LoginServiceHandler extends LoginHandlerImpl {
	
	public LoginServiceHandler(AndroidContext context) {
		
		String enviroment = System.getProperty("Enviroment");
		
		if( enviroment==null || !enviroment.equals("UNIT_TEST") ) {
			
			super.setLoginManager( new LoginServiceManager(context) );
		}
	}
	
	public void setLoginManager( LoginManager loginManager ) {
		super.setLoginManager(loginManager);
	}

}
